namespace Expect.Documentation.Fixtures_reference
{
    using System;
    using Expect.Core;
    using Expect.Core.Fixtures;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    
    
    // This file is generated, if you modify content you will lose your modifications when the generator will regenerate the file
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Expect.Core", "0.5.2.0")]
    [System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    [TestClass()]
    [SpecificationContainerAttribute(Name="ActorFixture", Path="\\Fixtures reference\\ActorFixture.expect")]
    public partial class ActorFixtureContainer : Expect.Core.AbstractSpecificationContainer
    {
        
        partial void PrepareContextExtension();
        
        partial void BeforeInitExtension();
        
        partial void AfterInitExtension();
        
        partial void BeforeTeardownExtension();
        
        partial void AfterTeardownExtension();
        
#line 1 "ActorFixture.expect"
#line hidden
        
        public override void InitializeContext()
        {
            base.InitializeContext();
            PrepareContextExtension();
        }
        
        [TestInitialize()]
        public virtual void ActorFixtureClass_TestInit()
        {
            InitializeContext();
            BeforeInit();
            BeforeInitExtension();

            SpecificationDefinition spec = new SpecificationDefinition();
            spec.CalculateResult();

            if ((spec.Status.Success.HasValue == false))
            {
                Assert.Inconclusive(spec.GetMessageForInconclusiveResult());
            }
            if ((spec.Status.Success.Value == false))
            {
                Assert.Fail(spec.GetMessageForFailedResult());
            }

            AfterInit();
            AfterInitExtension();
        }
        
        [TestCleanup()]
        public virtual void ActorFixtureClass_TestTeardown()
        {
            BeforeTeardown();
            BeforeTeardownExtension();

            SpecificationDefinition spec = new SpecificationDefinition();
            spec.CalculateResult();

            if ((spec.Status.Success.HasValue == false))
            {
                Assert.Inconclusive(spec.GetMessageForInconclusiveResult());
            }
            if ((spec.Status.Success.Value == false))
            {
                Assert.Fail(spec.GetMessageForFailedResult());
            }

            AfterTeardown();
            AfterTeardownExtension();
        }
        
        // TestComment
        [TestMethod()]
        public virtual void ActorFixture()
        {
            SpecificationDefinition spec = new SpecificationDefinition();
            Get_ActorFixture(spec);
            spec.CalculateResult();

            if ((spec.Status.Success.HasValue == false))
            {
                Assert.Inconclusive(spec.GetMessageForInconclusiveResult());
            }
            if ((spec.Status.Success.Value == false))
            {
                Assert.Fail(spec.GetMessageForFailedResult());
            }
        }
        
        [SpecificationProviderAttribute(Name="ActorFixture")]
        public virtual void Get_ActorFixture(Expect.Core.SpecificationDefinition spec)
        {
            spec.Context = Context;
            spec.Name = "ActorFixture";
            FixtureDefinition fixture = null;

            fixture = spec.AddFixture<DescriptionFixture>();
#line 1
            fixture.WithRow("*ActorFixture* is a wrapper for fixture methods. Each row in the fixture are inte" +
                    "rpreted as a fixture method within the actor fixture");
#line 2
            fixture.WithRow("!For example :!");
#line hidden
            fixture.EndRun();

            fixture = spec.AddFixture();
#line 3
            fixture.WithRow("This is sample actor fixture.");
#line 4
            fixture.WithRow("This is a method called in the actor fixture implementation.");
#line 5
            fixture.WithRow("Another method of the actor fixture.");
#line hidden
            fixture.EndRun();

            fixture = spec.AddFixture();
#line 7
            fixture.WithRow("At the end, we check that fixture methods where properly called.");
#line hidden
            fixture.EndRun();

        }
    }
}
